<extend name="Public:base" />
<block name="title"><title>后台管理 | 添加用户</title></block>

<block name="sidebarmenu">
	<li class="start">

		<a href="__APP__">

		<i class="icon-home"></i> 

		<span class="title">管理首页</span>

		</a>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-cogs"></i> 

		<span class="title">系统设置</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="layout_horizontal_sidebar_menu.html">

				数据库设置</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-bookmark-empty"></i> 

		<span class="title">文章管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="{:U('Article/artList')}">

				文章列表</a>

			</li>

			<li >

				<a href="{:U('Article/addArt')}">

				添加文章</a>

			</li>

			<li>

				<a href="{:U('Article/cateList')}">

				分类列表</a>

			</li>

			<li class="">

				<a href="{:U('Article/addCate')}">

				添加分类</a>

			</li>

		</ul>

	</li>

	<li class="active">

		<a href="javascript:;">

		<i class="icon-user"></i> 

		<span class="title">用户管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li class="active">

				<a href="{:U('User/userlist')}">

				用户列表</a>

			</li>
			<li class="">

				<a href="{:U('User/addUser')}">

				添加用户</a>

			</li>

			<li >

				<a href="{:U('User/editPass')}">

				修改密码</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-th"></i> 

		<span class="title">Data Tables</span>

		<span class="selected"></span>

		<span class="arrow open"></span>

		</a>

		<ul class="sub-menu">

			<li class="">

				<a href="table_basic.html">

				Basic Tables</a>

			</li>

		</ul>

	</li>
</block>

<block name="page-title">				
	<h3 class="page-title">
		博客系统 <small>系统概况</small>
	</h3>
	<ul class="breadcrumb">
		<li>
			<i class="icon-home"></i>
			<a href="__APP__">主页</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('User/userlist')}">用户管理</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('User/userlist')}">用户列表</a> 
		</li>
	</ul>
</block>
						
<block name="page-content">
<div class="row-fluid">
	<div class="span12">
		<!-- BEGIN SAMPLE TABLE PORTLET-->
		<div class="portlet box red">
			<div class="portlet-title">
				<div class="caption"><i class="icon-cogs"></i>当前用户信息</div>
				<div class="tools">
					<a href="javascript:;" class="collapse"></a>
					<a href="#portlet-config" data-toggle="modal" class="config"></a>
					<a href="javascript:;" class="reload"></a>
					<a href="javascript:;" class="remove"></a>
				</div>
			</div>
			<div class="portlet-body">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>用户名</th>
							<th>性别</th>
							<th>邮箱</th>
							<th>用户组</th>
							<th>登录次数</th>
							<th>最后登录IP</th>
							<th>最后登录时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>						
						<foreach name="users" item="user" key="k">
						<tr>
							<td>{$k+1}</td>
							<td>{$user.username}</td>
							<td>{$user['sex']?'男':'女'}</td>
							<td>{$user.mail}</td>
							<td>{$user.name}</td>
							<td>{$user.loginnum}</td>
							<td>{$user.loginip}</td>
							<td>{$user.logintime}</td>
							<td>
								<a href="{:U('viewUser', 'id='.$user['id'])}" class="btn mini green"><i class="icon-zoom-in"></i> 查看</a>
								<a href="{:U('editUser', 'id='.$user['id'])}" class="btn mini purple"><i class="icon-edit"></i> 修改</a>
								<a href="{:U('delUser', 'id='.$user['id'])}" class="btn mini black" onClick="return confirm('确定要删除当前用户吗')"><i class="icon-trash"></i> 删除</a>
							</td>
						</tr>
						</foreach>
						<tr>
							<td colspan="9">
								<p>{$page}</p>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<!-- END SAMPLE TABLE PORTLET-->
	</div>
	</div>
</block> 

